package com.interest.business.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.interest.common.annotation.Excel;
import com.interest.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 订单记录对象 interest_order
 * 
 * @author ruoyi
 * @date 2023-11-11
 */
public class InterestOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private String id;

    /**
     * 订单编号
     */
    private String orderNo;

    /** 三方订单编号 */
    @Excel(name = "订单编号")
    private String jtcOrderNo;

    /** 手机号 */
    @Excel(name = "手机号")
    private String mobile;

    /** 商品编码 */
    @Excel(name = "商品编码")
    private String customerGoodsNo;

    /** 订单金额(元) */
    @Excel(name = "订单金额(元)")
    private String amount;

    /** 下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "下单时间 ", readConverterExp = "类=型为下单时为订单创建时间,类=型为退款时,为=退款时间")
    private Date orderTime;

    /** 退款时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "退款时间 ", readConverterExp = "类=型为下单时为订单创建时间,类=型为退款时,为=退款时间")
    private Date refundTime;

    /** 记录类型 1下单 2退款 */
    @Excel(name = "记录类型 1下单 2退款")
    private String orderType;

    /**
     * 订单来源
     */
    private String orderSource;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setJtcOrderNo(String jtcOrderNo)
    {
        this.jtcOrderNo = jtcOrderNo;
    }

    public String getJtcOrderNo()
    {
        return jtcOrderNo;
    }
    public void setMobile(String mobile)
    {
        this.mobile = mobile;
    }

    public String getMobile()
    {
        return mobile;
    }
    public void setCustomerGoodsNo(String customerGoodsNo)
    {
        this.customerGoodsNo = customerGoodsNo;
    }

    public String getCustomerGoodsNo()
    {
        return customerGoodsNo;
    }
    public void setAmount(String amount)
    {
        this.amount = amount;
    }

    public String getAmount()
    {
        return amount;
    }
    public void setOrderTime(Date orderTime)
    {
        this.orderTime = orderTime;
    }

    public Date getOrderTime()
    {
        return orderTime;
    }
    public void setOrderType(String orderType)
    {
        this.orderType = orderType;
    }

    public String getOrderType()
    {
        return orderType;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public Date getRefundTime() {
        return refundTime;
    }

    public void setRefundTime(Date refundTime) {
        this.refundTime = refundTime;
    }

    public String getOrderSource() {
        return orderSource;
    }

    public void setOrderSource(String orderSource) {
        this.orderSource = orderSource;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("orderNo", getOrderNo())
                .append("jtcOrderNo", getJtcOrderNo())
                .append("mobile", getMobile())
                .append("customerGoodsNo", getCustomerGoodsNo())
                .append("amount", getAmount())
                .append("orderTime", getOrderTime())
                .append("refundTime", getRefundTime())
                .append("orderType", getOrderType())
                .append("createTime", getCreateTime())
                .append("orderSource", getOrderSource())
                .toString();
    }
}
